package Server.dao;

import Server.entity.Shop;
import Server.entity.ShopCar;
import Server.entity.ShopSpec;
import Server.entity.Users;
import org.apache.tomcat.jni.User;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface ShopCarDao extends JpaRepository<ShopCar, String> {
    List<ShopCar> findByUsers(Users users);

    ShopCar findByUsersAndShopSpec(Users users, ShopSpec shopSpec);

    ShopCar findByUuid(String uuid);

    Integer deleteByUsers(Users user);

    Integer deleteByUuid(String uuid);
}
